package de.hsb.ai.agent.TeamDetectiveAgent;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Vector;

import de.hsb.ai.util.map.ScotlandJadeMapHelper.ScotlandJadeVertex;


/**
 * Class for creating nodes in the minimax Tree
 */

public class TDNode {

	boolean isTerminalNode = false;
	int id;
	Vector<ScotlandJadeVertex> detectives;
	int fugitive;
	TDNode parent;
	int level;
	int valuation;
	int currentDetectiveIndex;
	
	public TDNode(int id, Vector<ScotlandJadeVertex> detectives, int fugitive, TDNode parent, 
			int level, int currentDetectiveIndex, int valuation){
		this.id = id;
		this.detectives = detectives;
		this.fugitive = fugitive;
		this.parent = parent;
		this.level = level;
		this.currentDetectiveIndex = currentDetectiveIndex;
		this.valuation = valuation;
	}
	
	protected TDNode getParent(){
		return parent;
	}
	
	protected int getID(){
		return id;
	}
	
	protected int getLevel(){
		return level;
	}
	
	protected int getCurrentDetective(){
		return currentDetectiveIndex;
	}
	
	protected Vector<ScotlandJadeVertex> getDetectives(){
		return detectives;
	}
	
	protected int getMrX(){
		return fugitive;
	}
	
	protected void setValuation(int v){
		valuation = v;
	}
	
	protected int getValuation(){
		return valuation;
	}
	

}









